cmake_minimum_required(VERSION 3.5)
project(App)

include_directories("/usr/include/eigen3")

# set(PCL_dir "/home/lin/software/pcl-1.10.1/build")

find_package(PCL 1.10 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})


find_package(OpenCV REQUIRED)
include_directories(OpenCV_INCLUDE_DIRS)

add_executable(00read_show src/00read_show.cpp)
target_link_libraries(00read_show ${PCL_LIBRARIES})


add_executable(01read_pcl src/01read_pcl.cpp)
target_link_libraries(01read_pcl ${OpenCV_LIBS} ${PCL_LIBRARIES})



#---------------------
add_executable(main src/main.cpp)
target_link_libraries(main ${OpenCV_LIBS} )

#---------------------
add_executable(02pointcloud_filter src/02pointcloud_filter.cpp)
target_link_libraries(02pointcloud_filter ${OpenCV_LIBS} ${PCL_LIBRARIES})

add_executable(03icp src/03icp.cpp)
target_link_libraries(03icp ${PCL_LIBRARIES})

add_executable(05vis src/05vis.cpp)
target_link_libraries(05vis ${PCL_LIBRARIES} -lpthread)